package com.taomus.mytools.simplec.utils;

import java.util.Stack;

public class S<T> extends Stack<T> {
	
	private static final long serialVersionUID = 1L;
	
	private Stack<T> obj;
	
	public S(Stack<T> inObj){
		this.obj = inObj;
	}
	@Override
	public T push(T item) {
		return obj.push(item);
	}

	@Override
	public synchronized T pop() {
		return obj.pop();
	}

	@Override
	public synchronized T peek() {
		return obj.peek();
	}

	@Override
	public boolean empty() {
		return obj.empty();
	}

	@Override
	public synchronized int search(Object o) {
		return obj.search(o);
	}
	@Override
	public synchronized int size() {
		return obj.size();
	}
}
